package com.whnk.system.service.impl;

import com.whnk.system.mapper.SysBatchMapper;
import com.whnk.system.service.ISysBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysBatchServiceImpl implements ISysBatchService {

    @Autowired
    private SysBatchMapper batchMapper;

    @Value("${datasource.tableSchema}")
    private String tableSchema;

    @Override
    public List<String> getAllTableName() {

        return batchMapper.getAllTableName(tableSchema);
    }

    @Override
    public List<String> getAllFiledName(String tableName) {

        return batchMapper.getAllFiledName(tableName);
    }

    @Override
    public void add(String tableName, Map filedMap) {
        batchMapper.add(tableName,filedMap);
    }


}
